package com.hjt.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hjt.common.to.member.UserLoginTo;
import com.hjt.common.utils.PageUtils;
import com.hjt.gulimall.member.entity.MemberEntity;
import com.hjt.gulimall.member.exception.EmailHasExistedException;
import com.hjt.gulimall.member.exception.UserNameHasExistedException;
import com.hjt.gulimall.member.vo.RegisterVo;
import com.hjt.gulimall.member.vo.UserLoginVo;

import java.util.Map;

/**
 * 会员
 *
 * @author huangjingtai
 * @email 970075985@qq.com
 * @date 2021-09-08 19:39:20
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(RegisterVo registerVo) throws UserNameHasExistedException, EmailHasExistedException;

    UserLoginTo login(UserLoginVo loginVo);
}

